import Vue from 'vue'
import Vuex from 'vuex'
import cart from './cart'
import order from './order'
import address from './address'
// // 导入 vuex-persist 插件
// import VuexPersistence from 'vuex-persist'
// // 创建一个对象
// const vuexLocal = new VuexPersistence({
//   storage:window.localStorage
// })


Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    
  },
  mutations: {
   
  },
  actions: {
   
  },
  modules: {
    cart,
    order,
    address
  },
  // // 新增一个 plugins
  // plugins:[vuexLocal.plugin]
})
